/**
 * com.dingjian.permission.service.PersonPermissionService.java
 */
package com.dingjian.permission.service;

import java.util.List;

import com.dingjian.base.service.BaseService;
import com.dingjian.basedata.org.model.Position;
import com.dingjian.basedata.person.model.Person;
import com.dingjian.permission.model.PersonPermission;

/**
 * @author FengMy
 * 
 * @since 2012-10-11
 */
public interface PersonPermissionService extends BaseService<PersonPermission> {
	
	/**
	 * 按人员和职位删除权限
	 * @param person
	 * @param position
	 */
	void deleteByPersonAndPosition(String person,String position);
	
	/**
	 * 保存
	 * @param person
	 * @param position
	 * @param permissionIds
	 */
	void savePersonPermissions(Person person,Position position,List<String> permissionIds);
	
	/**
	 * 批量删除人员权限
	 * @param ids
	 */
	void deletePersonPermissions(List<String> ids);
}
